//
//  UILabel+MyLabel.m
//  jiajiao
//
//  Created by 张艳江 on 17/1/21.
//  Copyright © 2017年 张艳江. All rights reserved.
//

#import "UILabel+MyLabel.h"

@implementation UILabel (MyLabel)

+ (UILabel *)createLabelFrame:(CGRect)frame text:(NSString *)text textColor:(UIColor *)textColor textAlignment:(NSTextAlignment)textAlignment font:(UIFont *)font numberOfLines:(NSInteger)numberOfLines{
    
    UILabel *label = [[UILabel alloc] initWithFrame:frame];
    label.text = text;
    label.font = font;
    label.textAlignment = textAlignment;
    label.textColor = textColor;
    label.numberOfLines = numberOfLines;
    
    return label;
}



@end
